package models

import "gorm.io/gorm"

type Article struct {
	gorm.Model
	Title   string `gorm:"type:varchar(255);not null;comment:'标题'"`
	Context string `gorm:"type:varchar(255);not null;comment:'内容'"`
	Author  string `gorm:"type:varchar(30);not null;comment:'作者'"`
	Type    int    `gorm:"type:int(11);not null;comment:'类型: 1:文本 2:图片 3: 商品'"`
	LikeNum int    `gorm:"type:int(20);not null;comment:'点赞量'"`
}
